package org.example.myleet.p1601;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(5 == solution.maximumRequests(5, Parser.parse("[[0,1],[1,0],[0,1],[1,2],[2,0],[3,4]]")));
        Assert.isTrue(3 == solution.maximumRequests(3, Parser.parse("[[0,0],[1,2],[2,1]]")));
        Assert.isTrue(4 == solution.maximumRequests(4, Parser.parse("[[0,3],[3,1],[1,2],[2,0]]")));
        Assert.isTrue(0 == solution.maximumRequests(4, Parser.parse("[[0,1],[1,2],[2,3]]")));
        Assert.isTrue(5 == solution.maximumRequests(3, Parser.parse("[[0,0],[1,1],[0,0],[2,0],[2,2],[1,1],[2,1],[0,1],[0,1]]")));
        Assert.isTrue(5 == solution.maximumRequests(5, Parser.parse("[[2,0],[0,4],[3,1],[2,4],[1,3],[4,2],[4,3],[0,1]]")));
    }
}
